package com.spring.lesson001.demo10;

import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author vhans
 */
public class ExtendText {
    @Test
    public void ExtendBean() {
        String beanXml = "extendBean0110.xml";
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(beanXml);
        System.out.println("ServiceB:"+ context.getBean(ServiceB.class));
        System.out.println("ServiceC:"+ context.getBean(ServiceC.class));
    }
}
